package hcn.protocol.ods.casehistory;

import hcn.util.validation.InvokeType;
import hcn.util.validation.ValidationAnnotaion;
import lombok.Data;

/**
 * @Author: zhusm@bsoft.com.cn
 *
 * @Description: 按重量添加区域入参
 *
 * @Create: 2019-06-26 16:39
 **/
@Data
public class InWeightRequest {
    @ValidationAnnotaion.NotNull(errorDescription = "模板id不能为空")
    private String modelId;//模板id
    @ValidationAnnotaion.NotNull(errorDescription = "省名称不能为空")
    private String subzone;//省名称
    @ValidationAnnotaion.NotNull(errorDescription = "省代码不能为空")
    private String subzoneCode;//省代码
    private String sonRegion;//市名称
    private String sonRegionCode;//市代码
    @ValidationAnnotaion(type=InvokeType.NUMBER,minValue = 0.01,errorDescription = "首重费用不能为0")
    private double firstWeightFee;//首重费用
    @ValidationAnnotaion(type=InvokeType.NUMBER,minValue = 0.01,errorDescription = "续重费用不能为0")
    private double continueWeightFee;//续重费用
}
